package day021.junit;

public class Calculator {
    private static int result;

    public int add(int n) {
        result += n;
        return result;
    }

    public int add(int num1, int num2) {
        return num1 + num2;
    }

    public void subtract(int n) {
        result -= 1;
        System.out.println(result);
    }

    public void multiply(int n) {

    }

    public void divide(int n) {
        result /= n;
    }

    public void aquare(int n) {
        result = n * n;
    }

    public void squareRoot(int n) {
        for (; ; ) ;
    }

    public void clear() {
        result = 0;
    }

    public int getResult() {
        return result;
    }
}
